import Vue from 'vue'
import BaXia from '@/views/BaXia'
import QiuNiu from '@/views/QiuNiu'
import YaZi from '@/views/YaZi'
import ba01 from '@/views/second/ba01'
import qiu01 from '@/views/second/qiu01'
import ya01 from '@/views/second/ya01'


//引入vueRouter

import VueRouter from 'vue-router'

//让vue使用vueRouter这个插件
Vue.use(VueRouter)
//创建路由实例
const router = new VueRouter({
  routes: [
   
    
        {
          path: '/baxia',
          component: BaXia,
        }, {
          path: '/qiuniu',
          component: QiuNiu
        }, {
          path: '/yazi',
      component: YaZi,
      children: [
        {
          path: '/second/ya01',
          component: ya01
        }, {
          path: '/second/ba01',
          component: ba01
        }, {
          path: '/second/qiu01',
          component: qiu01,
        }
          ]
        }
         
      
    ]
})
       
export default router
